import request from '@/utils/request'

/**
 * @param {*} keyword
 * @param {*} password
 */
export function login(keyword, password) {
  return request({
    url: '/users/userLogin',
    method: 'post',
    params: {
      keyword,
      password
    }
  })
}

export function getInfo() {
  return request({
    url: '/users/getLoginBeanInfo',
    method: 'post'
  })
}

export function logout() {
  return request({
    url: '/users/logout',
    method: 'post'
  })
}
